import Login from "../pages/main/Login";
import PageNotFound from "../pages/main/PageNotFound";
import Register from "../pages/main/Register";
import Home from "../pages/admin/homepage/Home";
import PersonalInfo from "../pages/admin/PersonalInfo";
import FileInfo from "../pages/admin/manager/fileinfo/FileInfo";
import UserEdit from "../pages/admin/manager/useredit/UserEdit";
import FileList from "../pages/admin/user/FileList";
import Shop from "../pages/admin/user/Shop";
import SumDownInfo from "../pages/admin/manager/fileinfo/SumDownInfo";
import PointCity from "../pages/admin/manager/fileinfo/PointCity";
import PointType from "../pages/admin/manager/fileinfo/PointType";
import UploadFile from "../pages/admin/manager/fileinfo/UploadFile";
import UserDownInfo from "../pages/admin/manager/fileinfo/UserDownInfo";
import EditUser from "../pages/admin/manager/useredit/EditUser";
import SearchUserInfo from "../pages/admin/manager/useredit/SearchUser";
import BingMap from "../pages/admin/homepage/BingMap";
import ShpMap from "../pages/admin/homepage/ShpMap";
import News from "../pages/admin/homepage/News";
import Notice from "../pages/admin/homepage/Notice";
import AddUser from "../pages/admin/manager/useredit/AddUser";
import DataDownload from "../pages/admin/manager/fileinfo/DataDownload";
import Spider from "../pages/admin/manager/spider/Spider";

export const mainRoutes = [
  {
    path: "/login",
    component: Login,
  },
  {
    path: "/register",
    component: Register,
  },
  {
    path: "/404",
    component: PageNotFound,
  },
];

export const adminRoutes = [
  {
    path: "/admin/home",
    component: Home,
  },
  {
    path: "/admin/personalinfo",
    component: PersonalInfo,
  },
  {
    path: "/admin/manager/fileinfo",
    component: FileInfo,
  },
  {
    path: "/admin/manager/useredit",
    component: UserEdit,
  },
  {
    path: "/admin/manager/spider",
    component: Spider,
  },
  {
    path: "/admin/user/filelist",
    component: FileList,
  },
  {
    path: "/admin/user/shop",
    component: Shop,
  },
];

export const fileInfoPath = [
  {
    path: "/admin/manager/fileinfo/summary",
    component: SumDownInfo,
  },
  {
    path: "/admin/manager/fileinfo/pointcity",
    component: PointCity,
  },
  {
    path: "/admin/manager/fileinfo/pointtype",
    component: PointType,
  },
  {
    path: "/admin/manager/fileinfo/uploadfile",
    component: UploadFile,
  },
  {
    path: "/admin/manager/fileinfo/userdowninfo",
    component: UserDownInfo,
  },
  {
    path: "/admin/manager/fileinfo/download",
    component: DataDownload,
  },
];

export const userEditorInfo = [
  {
    path: "/admin/manager/useredit/adduser",
    component: AddUser,
  },
  {
    path: "/admin/manager/useredit/edituser",
    component: EditUser,
  },
  {
    path: "/admin/manager/useredit/searchuser",
    component: SearchUserInfo,
  },
];

export const homePath = [
  {
    path: "/admin/home/bingmap",
    component: BingMap,
  },
  {
    path: "/admin/home/shpmap",
    component: ShpMap,
  },
  {
    path: "/admin/home/news",
    component: News,
  },
  {
    path: "/admin/home/notice",
    component: Notice,
  },
];
